home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / ProtocolsP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.0 KB  |  87 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2
  7. */ 
  8. /*   $RCSfile: ProtocolsP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:45:26 $ */
  9. /*
  10. *  (c) Copyright 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  11. #ifndef _XmProtocolsP_h
  12. #define _XmProtocolsP_h
  13.  
  14. #include <Xm/Protocols.h>
  15. #include <Xm/ExtObjectP.h>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. typedef struct _XmProtocolClassPart{
  21.     XtPointer    extension;
  22. }XmProtocolClassPart;
  23.  
  24. typedef struct _XmProtocolClassRec{
  25.     ObjectClassPart    object_class;
  26.     XmExtClassPart    ext_class;
  27.     XmProtocolClassPart    protocol_class;
  28. }XmProtocolClassRec, *XmProtocolObjectClass;
  29.  
  30. typedef struct _XmProtocolPart{
  31.     XtCallbackRec    pre_hook, post_hook;
  32.     XtCallbackList    callbacks;
  33.     Atom        atom;
  34.     Boolean        active;
  35. } XmProtocolPart, *XmProtocolPartPtr;
  36.  
  37. typedef struct _XmProtocolRec{
  38.     ObjectPart            object;
  39.     XmExtPart            ext;
  40.     XmProtocolPart        protocol;
  41. }XmProtocolRec, *XmProtocol, **XmProtocolList;
  42.  
  43. #ifndef XmIsProtocol
  44. #define XmIsProtocol(w) XtIsSubclass(w, xmProtocolObjectClass)
  45. #endif /* XmIsProtocol */
  46.  
  47. /* Class record constants */
  48.  
  49. externalref XmProtocolClassRec     xmProtocolClassRec;
  50. externalref WidgetClass xmProtocolObjectClass;
  51.  
  52. typedef struct _XmProtocolMgrRec{
  53.     Atom        property;
  54.     XmProtocolList     protocols;
  55.     Cardinal        num_protocols;
  56.     Cardinal        max_protocols;
  57. }XmProtocolMgrRec, *XmProtocolMgr, **XmProtocolMgrList;
  58.  
  59.  
  60. typedef struct _XmAllProtocolsMgrRec{
  61.   XmProtocolMgrList    protocol_mgrs;
  62.   Cardinal        num_protocol_mgrs;
  63.   Cardinal        max_protocol_mgrs;
  64.   Widget        shell;
  65. }XmAllProtocolsMgrRec, *XmAllProtocolsMgr;
  66.     
  67.  
  68. /********    Private Function Declarations    ********/
  69. #ifdef _NO_PROTO
  70.  
  71. extern void _XmInstallProtocols() ;
  72.  
  73. #else
  74.  
  75. extern void _XmInstallProtocols( 
  76.                         Widget w) ;
  77.  
  78. #endif /* _NO_PROTO */
  79. /********    End Private Function Declarations    ********/
  80.  
  81.  
  82. #ifdef __cplusplus
  83. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  84. #endif
  85.  
  86. #endif /* _XmProtocolsP_h */
  87.